package red.book.until;

import edu.princeton.cs.introcs.StdOut;
import edu.princeton.cs.introcs.StdRandom;

/**
 * 打印 N 个 [lo, ni) 之间的随机值。
 * 
 * % java  -Djava.ext.dirs=D://workstation/eclipse/wangbingwu.test/lib red/book/until/RandomSeq 2 100 200 #注意lib是文件夹。还有文件路径分隔符。
 * % java  -Djava.ext.dirs=D://workstation/eclipse/wangbingwu.test/lib red/book/until/RandomSeq 2 100 200 | java red/book/until/Average
 * @author wangbingwu
 *
 */
public class RandomSeq {
	public static void main(String[] args) {
		int N = Integer.parseInt(args[0]);
		double lo = Double.parseDouble(args[1]);
		double hi = Double.parseDouble(args[2]);
		
		for (int i = 0; i < N; i++){
			double x = StdRandom.uniform(lo, hi);
			StdOut.printf("%.2f\n", x);
		}
	}
}
/**
 * Output:
198.88
132.69
138.75
191.08
118.65
 */
